<!doctype html>
<html>
<head>
</head>
<body>
    <canvas id="can" width="100" height="100"></canvas>
<script>

var outputCanvas = document.getElementById("can");
var outputContext = outputCanvas.getContext("2d");
outputContext.fillRect(0, 0, 15, 15);
outputContext.fillRect(50, 90, 50, 10);

</script>
</body>
</html>